
import request from '@/utils/request'
//可视化场景设施配置列表
export function getfacilities() {
    return request({
        url: '/visualize/facilities/list',
        method: 'get'
    })
}
//新增设施配置
export function addFacilities(data) {
    return request({
        url: '/visualize/facilities',
        method: 'post',
        data: data
    })
}
// 修改设施配置
export function updateFacilities(data) {
    return request({
        url: '/visualize/facilities/edit',
        method: 'post',
        data: data
    })
}
// 删除设施配置
export function delFacilities(ids) {
    return request({
        url: '/visualize/facilities/' + ids,
        method: 'delete'
    })
}
///查询可视化页面配置列表 
export function getPageConfig() {
    return request({
        url: '/visualize/pageConfig/list',
        method: 'get'
    })
}
//新增页面配置
export function addPageConfig(data) {
    return request({
        url: '/visualize/pageConfig',
        method: 'post',
        data: data
    })
}
//修改页面配置
export function updatePageConfig(data) {
    return request({
        url: '/visualize/pageConfig/edit',
        method: 'post',
        data: data
    })
}
// 删除页面配置
export function delPageConfig(ids) {
    return request({
        url: '/visualize/pageConfig/' + ids,
        method: 'delete'
    })
}
//获取场景设施配置字典
export function getFacilitiesDic() {
    return request({
        url: '/visualize/facilities/dic',
        method: 'get'
    })
}